package com.library.borrow.model;

import java.util.Date;

public class BorrowRecord {
    private Integer id;
    private Integer bookId;
    private String readerName;
    private String readerPhone;
    private Date borrowDate;
    private Date returnDate;
    private Date actualReturnDate;
    private String status;
    private Date createtime;
    private Date updatetime;

    // 构造方法
    public BorrowRecord() {
    }

    public BorrowRecord(Integer id, Integer bookId, String readerName, String readerPhone, Date borrowDate, Date returnDate, Date actualReturnDate, String status, Date createtime, Date updatetime) {
        this.id = id;
        this.bookId = bookId;
        this.readerName = readerName;
        this.readerPhone = readerPhone;
        this.borrowDate = borrowDate;
        this.returnDate = returnDate;
        this.actualReturnDate = actualReturnDate;
        this.status = status;
        this.createtime = createtime;
        this.updatetime = updatetime;
    }

    // getter和setter方法
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getBookId() {
        return bookId;
    }

    public void setBookId(Integer bookId) {
        this.bookId = bookId;
    }

    public String getReaderName() {
        return readerName;
    }

    public void setReaderName(String readerName) {
        this.readerName = readerName;
    }

    public String getReaderPhone() {
        return readerPhone;
    }

    public void setReaderPhone(String readerPhone) {
        this.readerPhone = readerPhone;
    }

    public Date getBorrowDate() {
        return borrowDate;
    }

    public void setBorrowDate(Date borrowDate) {
        this.borrowDate = borrowDate;
    }

    public Date getReturnDate() {
        return returnDate;
    }

    public void setReturnDate(Date returnDate) {
        this.returnDate = returnDate;
    }

    public Date getActualReturnDate() {
        return actualReturnDate;
    }

    public void setActualReturnDate(Date actualReturnDate) {
        this.actualReturnDate = actualReturnDate;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    @Override
    public String toString() {
        return "BorrowRecord{" +
                "id=" + id +
                ", bookId=" + bookId +
                ", readerName='" + readerName + '\'' +
                ", readerPhone='" + readerPhone + '\'' +
                ", borrowDate=" + borrowDate +
                ", returnDate=" + returnDate +
                ", actualReturnDate=" + actualReturnDate +
                ", status='" + status + '\'' +
                ", createtime=" + createtime +
                ", updatetime=" + updatetime +
                '}';
    }
} 